import React, { Component } from 'react'
import Header from './components/Header'
import List from './components/List'
export default class App extends Component {
  state = {
    users:[]
  }

  saveUsers = (users)=>{
    this.setState({users})
  }
  render() {
    return (
      <div className='caontainer'>
        <Header saveUsers={this.saveUsers}/>
        <List users={this.state.users}/>
      </div>
    )
  }
}
